<?php

namespace App\Http\Requests\Backend\Sysconf;

use App\Http\Requests\BaseRequest;

class AreasRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 表单验证.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'area_name' => '|max:40',
			'pid' => '|integer',
			'short_name' => '|max:40',
			'level' => '|integer',
			'area_code' => '|max:20',
			'zip_code' => '|max:10',
			'comb_name' => '|max:100',
			'longitude' => '',
			'latitude' => '',
			'pinyin' => '|max:100',
			'deleted_at' => '|integer',

        ];
    }
}
